import request from '@/utils/request'

export function getCaseList(data) {
  return request({
    url: '/case_library/get_case_list',
    method: 'post',
    data
  })
}
export function addCaseLibrary(data) {
  return request({
    url: '/case_library/add_case',
    method: 'post',
    data
  })
}
export function updataCaseLibrary(data) {
  return request({
    url: '/case_library/update_case',
    method: 'post',
    data
  })
}
export function remoteGit(caseId, nodeId, taskId) {
  return request({
    url: '/case_library/deployee/' + caseId + '/' + nodeId + '/' + taskId,
    method: 'get'
  })
}
export function remoteStop(caseId, nodeId, taskId) {
  return request({
    url: '/case_library/stop/' + caseId + '/' + nodeId + '/' + taskId,
    method: 'get'
  })
}
export function remoteStart(caseId, nodeId, taskId) {
  return request({
    url: '/case_library/start/' + caseId + '/' + nodeId + '/' + taskId,
    method: 'get'
  })
}
